const rules = {
    userName: [{ required: true, message: '请输入用户名'},
      { len: 11, message: '长度为11位数字' }],
    name: [
      { required: true, message: '请输入名称' }
    ],
    password: [
      { required: true, message: '请输入密码' }
    ],
    srole: [
      { required: true, message: '请输入角色', type: 'string' }
    ],
    scenicName: [
      { required: true, message: '请输入景点名' }
    ],
    scenicAddress: [
      { required: true, message: '请输入景点地址'}
    ],
    scenicLatitude: [
      { required: true, message: '请输入经度'}
    ],
    scenicLongitude: [
      { required: true, message: '请输入纬度'}
    ],
    city: [
      { required: true, message: '请输入城市名' }
    ],
    reading: [
      { required: true, message: '请输入阅读量'}
    ],
    scenicContent: [
      { required: true, message: '请输入景点介绍'}
    ],
    labelOne: [
      { required: true, message: '请输入景点特色' }
    ],
    labelTwo: [
      { required: true, message: '请输入景点特色'}
    ],
    userPassword: [
      { required: true, message: '请输入密码'}
    ],
    code: [
      { required: true, message: '验证码不能为空'},
      { len: 4, message: '长度为4位数字'}
    ],
    userMotto: [
      { required: false, message: '个性签名不能为空' }
    ],
    userPhone: [
      { required: false, message: '电话号码不能为空'},
      { len: 11, message: '长度为11位数字' }
    ],
    userId: [
      { required: true, message: '游记发布者Id不能为空'}
    ],
    likes: [
      { required: true, message: '游记点赞数' }
    ],
    category: [
      { required: true, message: '游记分类' }
    ],
    postContent: [
      { required: true, message: '游记内容不能为空' }
    ],
    poorName: [
      { required: true, message: '贫困户姓名不能为空' }
    ],
    poorAge: [
      { required: true, message: '贫困户年龄不能为空'}
    ],
    poorPhone: [
      { required: true, message: '电话号码不能为空'},
      { len: 11, message: '长度为11位数字' }
    ],
    poorGrade: [
      { required: true, message: '贫困等级不能为空'},
      { min: 1, max: 5, message: '范围为1~5' }
    ],
    poorSex: [
      { required: true, message: '贫困户性别不能为空'}
    ],
    homeAddress: [
      { required: true, message: '贫困户居住地址不能为空'}
    ],
    poorContent: [
      { required: true, message: '贫困户贫困缘由不能为空'}
    ]
  }
  
  export default rules
  